﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="gpzj_Edit.aspx.cs" Inherits="rxt_gpzj_Edit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/style1.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" defer="defer" src="../My97DatePicker/WdatePicker.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table>
            <tr>
                <td >标题</td>
                <td><asp:TextBox ID="txtTitle" runat="server" MaxLength="9" 
                        Width="176px" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ErrorMessage="非空" ControlToValidate="txtTitle"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td >链接</td>
                <td><asp:TextBox ID="txtUrl" runat="server" Width="553px" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ErrorMessage="非空" Display="Dynamic" ControlToValidate="txtUrl"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revUrl" runat="server" 
                        ControlToValidate="txtUrl" ErrorMessage="链接格式错误" 
                        ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td >买入时间</td>
                <td ><asp:TextBox ID="txtMrTime" runat="server" 
                        Width="176px" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"/>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ErrorMessage="非空" ControlToValidate="txtMrTime"></asp:RequiredFieldValidator>
                </td>
            </tr>
             <tr>
                <td >涨幅</td>
                <td ><asp:TextBox ID="txtZf" runat="server"  
                        Width="176px" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                        ErrorMessage="非空" ControlToValidate="txtZf"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Button ID="btnSave" runat="server" Text="添加" onclick="btnSave_Click" /></td>
            </tr>
        </table>
        <asp:HiddenField ID="hidId" runat="server" />
    </div>
    </form>
</body>
</html>
